package listTask;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class ListTask {

	// public static void main(String[] arg0) {

	List<Task> list = new ArrayList<Task>();

	public void addition() {
		for (int i = 0; i < 20; ++i) {
			StringBuffer strDate = new StringBuffer();
			strDate.append("1");
			strDate.append(i);
			strDate.append("-7-2013");
			SimpleDateFormat date = new SimpleDateFormat(strDate.toString());
			list.add(new Task(i, "" + i + " ������", strDate
					.toString()));
		}
	}
	
	public void add (int id, String description, String date) 
	{
		list.add(new Task(id, description, date));
	}

	public List getList() {
		addition();
		return list;
	}
	
}
